﻿Public Class Form25

    Private Sub DmkhachhangBindingNavigatorSaveItem_Click(sender As System.Object, e As System.EventArgs) Handles DmkhachhangBindingNavigatorSaveItem.Click
        Me.Validate()
        Me.DmkhachhangBindingSource.EndEdit()
        Me.TableAdapterManager.UpdateAll(Me.ErpharmaDataSet)
    End Sub

    Private Sub Form25_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        'TODO: This line of code loads data into the 'Test4DataSet.tbl_test' table. You can move, or remove it, as needed.
        Me.Tbl_testTableAdapter.Fill(Me.Test4DataSet.tbl_test)
        'TODO: This line of code loads data into the 'Test4DataSet.tbl_thu' table. You can move, or remove it, as needed.
        Me.Tbl_thuTableAdapter.Fill(Me.Test4DataSet.tbl_thu)
        Me.Tbl_testIUltraGrid.setDoiTuongXuLyDuLieu(Me.Test4DataSet.tbl_test, Me.Tbl_testBindingSource, Me.Tbl_testTableAdapter, Test4DataSet)
        Me.DmkhachhangIUltraGrid.setDoiTuongXuLyDuLieu(Me.Test4DataSet.tbl_thu, Me.Tbl_thuBindingSource, Me.Tbl_thuTableAdapter, Me.Test4DataSet)
        'Me.Tbl_testIUltraGrid.setFocusCellUltraGridNotNew("ghichu", Me.DmkhachhangIUltraGrid)
        Me.Tbl_testIUltraGrid.setFocusCellUltraGrid("ghichu", Me.DmkhachhangIUltraGrid)
        'Me.DmkhachhangTableAdapter.Fill(Me.ErpharmaDataSet.dmkhachhang)
        '    Me.DmkhachhangIUltraGrid.setGiaoDienTuDong()
        '    Me.DmkhachhangIUltraGrid.setTimKiemTrenCotUltraGrid()
        '    Me.DmkhachhangIUltraGrid.setDoiTuongXuLyDuLieu(Me.ErpharmaDataSet.dmkhachhang, Me.DmkhachhangBindingSource, Me.DmkhachhangTableAdapter, Me.ErpharmaDataSet)
        '    Me.DmkhachhangIUltraGrid.setChoPhepMenuStrip()
        '    Me.DmkhachhangIUltraGrid.setGiaoDienTuDong()
    End Sub

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
        Me.Tbl_testIUltraGrid.getTaoMoi()
    End Sub
End Class